package com.nxmu.hire.service;

import com.nxmu.hire.common.exception.ServiceException;
import com.nxmu.hire.model.GradeCoefficient;
import com.nxmu.hire.model.enums.SemesterEnum;
import com.nxmu.hire.vo.GradeCoefficientReqVo;

public interface GradeCoefficientService {

    /**
     * 查找最新的评分系数
     * @return
     */
    GradeCoefficient findLastGradeCoefficient();

    /**
     * 添加标准系数
     * @param gradeCoefficientReqVo
     */
    void save(GradeCoefficientReqVo gradeCoefficientReqVo) throws ServiceException;

    /**
     * 根据学年和学期查询评分系数
     * @return
     */
    GradeCoefficient findByYearAndSemester(Integer schoolYear, SemesterEnum semester) throws ServiceException;

}
